.class public Lcom/waiqin365/lightwork/tracker/model/c;
.super Landroid/widget/BaseAdapter;


# instance fields
.field private a:Landroid/content/Context;

.field private b:Lcom/waiqin365/lightwork/tracker/model/f;

.field private c:Landroid/view/LayoutInflater;

.field private d:Landroid/database/DataSetObserver;


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .locals 2

    invoke-direct {p0}, Landroid/widget/BaseAdapter;-><init>()V

    new-instance v0, Lcom/waiqin365/lightwork/tracker/model/d;

    invoke-direct {v0, p0}, Lcom/waiqin365/lightwork/tracker/model/d;-><init>(Lcom/waiqin365/lightwork/tracker/model/c;)V

    iput-object v0, p0, Lcom/waiqin365/lightwork/tracker/model/c;->d:Landroid/database/DataSetObserver;

    iput-object p1, p0, Lcom/waiqin365/lightwork/tracker/model/c;->a:Landroid/content/Context;

    invoke-static {}, Lcom/waiqin365/lightwork/tracker/model/f;->a()Lcom/waiqin365/lightwork/tracker/model/f;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightwork/tracker/model/c;->b:Lcom/waiqin365/lightwork/tracker/model/f;

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/model/c;->b:Lcom/waiqin365/lightwork/tracker/model/f;

    iget-object v1, p0, Lcom/waiqin365/lightwork/tracker/model/c;->d:Landroid/database/DataSetObserver;

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightwork/tracker/model/f;->a(Landroid/database/DataSetObserver;)V

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/model/c;->a:Landroid/content/Context;

    const-string/jumbo v1, "layout_inflater"

    invoke-virtual {v0, v1}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/view/LayoutInflater;

    iput-object v0, p0, Lcom/waiqin365/lightwork/tracker/model/c;->c:Landroid/view/LayoutInflater;

    return-void
.end method


# virtual methods
.method public a()V
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/model/c;->b:Lcom/waiqin365/lightwork/tracker/model/f;

    invoke-virtual {v0}, Lcom/waiqin365/lightwork/tracker/model/f;->b()V

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/model/c;->b:Lcom/waiqin365/lightwork/tracker/model/f;

    invoke-virtual {v0}, Lcom/waiqin365/lightwork/tracker/model/f;->d()V

    return-void
.end method

.method public a(Lcom/waiqin365/lightwork/tracker/model/aa;)V
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/model/c;->b:Lcom/waiqin365/lightwork/tracker/model/f;

    invoke-virtual {v0, p1}, Lcom/waiqin365/lightwork/tracker/model/f;->a(Lcom/waiqin365/lightwork/tracker/model/aa;)V

    return-void
.end method

.method public getCount()I
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/model/c;->b:Lcom/waiqin365/lightwork/tracker/model/f;

    invoke-virtual {v0}, Lcom/waiqin365/lightwork/tracker/model/f;->c()I

    move-result v0

    return v0
.end method

.method public getItem(I)Ljava/lang/Object;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/model/c;->b:Lcom/waiqin365/lightwork/tracker/model/f;

    invoke-virtual {v0, p1}, Lcom/waiqin365/lightwork/tracker/model/f;->a(I)Lcom/waiqin365/lightwork/tracker/model/aa;

    move-result-object v0

    return-object v0
.end method

.method public getItemId(I)J
    .locals 2

    int-to-long v0, p1

    return-wide v0
.end method

.method public getView(ILandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;
    .locals 4

    const/4 v3, 0x0

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/model/c;->b:Lcom/waiqin365/lightwork/tracker/model/f;

    invoke-virtual {v0, p1}, Lcom/waiqin365/lightwork/tracker/model/f;->a(I)Lcom/waiqin365/lightwork/tracker/model/aa;

    move-result-object v2

    if-nez p2, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/model/c;->c:Landroid/view/LayoutInflater;

    const v1, 0x7f030266

    invoke-virtual {v0, v1, v3}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object p2

    new-instance v1, Lcom/waiqin365/lightwork/tracker/model/e;

    invoke-direct {v1, p0, v3}, Lcom/waiqin365/lightwork/tracker/model/e;-><init>(Lcom/waiqin365/lightwork/tracker/model/c;Lcom/waiqin365/lightwork/tracker/model/d;)V

    const v0, 0x7f0c0bac

    invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, v1, Lcom/waiqin365/lightwork/tracker/model/e;->a:Landroid/widget/TextView;

    const v0, 0x7f0c0bad

    invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, v1, Lcom/waiqin365/lightwork/tracker/model/e;->b:Landroid/widget/TextView;

    invoke-virtual {p2, v1}, Landroid/view/View;->setTag(Ljava/lang/Object;)V

    move-object v0, v1

    :goto_0
    iget-object v1, v0, Lcom/waiqin365/lightwork/tracker/model/e;->a:Landroid/widget/TextView;

    iget-object v3, v2, Lcom/waiqin365/lightwork/tracker/model/aa;->a:Ljava/lang/String;

    invoke-virtual {v1, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v0, v0, Lcom/waiqin365/lightwork/tracker/model/e;->b:Landroid/widget/TextView;

    iget-object v1, v2, Lcom/waiqin365/lightwork/tracker/model/aa;->c:Ljava/lang/String;

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    return-object p2

    :cond_0
    invoke-virtual {p2}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightwork/tracker/model/e;

    goto :goto_0
.end method
